﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DataAccess;
using System.Data;
namespace Business
{
    public class XuLyLayThongTinKhachHang
    {
        DataTable _datatable;

        public DataTable datatable
        {
            get { return _datatable; }
            set { _datatable = value; }
        }
        private KhachHang _khachkhang = new KhachHang();

        public KhachHang khachkhang
        {
            get { return _khachkhang; }
            set { _khachkhang = value; }
        }
        public void ThucThi()
        {
            TruyXuatThongTinKhachHang khach = new TruyXuatThongTinKhachHang();
            khach.khachhang.TenTaiKhoan = this.khachkhang.TenTaiKhoan;
            datatable = khach.TableKhachHang();
        }
        public void LayThongTinHoiVien()
        {
            TruyXuatThongTinKhachHang khach = new TruyXuatThongTinKhachHang();
            khach.khachhang.SoTheHoiVien = this.khachkhang.SoTheHoiVien;
            datatable = khach.ThongTinHoiVien();
        }
    }
}
